package com.food.platformmsgmanagement.port.outbound;

import com.food.platformmsgmanagement.adapter.inbound.AlimentDTO;
import com.food.platformmsgmanagement.adapter.inbound.CommentDTO;
import com.food.platformmsgmanagement.domain.Aliment;
import com.food.platformmsgmanagement.domain.Comment;
import com.food.platformmsgmanagement.domain.Status;

import java.util.List;
import java.util.Optional;

/**
 * 抽象的数据库接口
 * @author 24270
 */
public interface AlimentRepository {
    List<AlimentDTO> queryAllAliment();
    AlimentDTO queryOneAliment(String id);
    String addAliment(Aliment aliment);
    void updateAlimentState(String id, String status);
    void updateAlimentImg(String imgList, String id);
    boolean deleteAliment(String id);

    List<CommentDTO> queryAllComment(String alimentId);
    List<CommentDTO> queryNumComment(String alimentId, int number);
    void addComment(Comment comment);
    boolean deleteComment(String id);
}
